
//
//  NearByViewController.m
//  YouMin_iOS
//
//  Created by lanou3g on 15/12/12.
//  Copyright © 2015年 wey. All rights reserved.
//

#import "NearByViewController.h"

@interface NearByViewController ()

@end

@implementation NearByViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self loadData];
    
}
-(void)loadData {

    double latitude = 40.03040000000001;
    double longitude = 116.34349900000001;
    NSString *urlStr = [NSString stringWithFormat:@"http://api.breadtrip.com/place/pois/nearby/?category=0&start=0&count=20&latitude=%f&longitude=%f",latitude,longitude];
    
    [[NetWorkHelper shareInstance] GET:urlStr parameters:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nonnull responseObject) {
        NSLog(@"%@",[responseObject class]);
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
